package br.com.ebc.icontatos.genericrepository;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
@SuppressWarnings("rawtypes")
public interface GenericRepository<T, PK extends Serializable> {
	 	public abstract Class getObjectClass();
	    public abstract T salvar(T obj);
	    public abstract T pesquisarPorId(PK id);
	    public abstract T find(Long id);
	    public abstract T atualizar(T obj);
	    public abstract void excluir(T obj);
	    public abstract List todos();
	    public abstract List listPesqParam(String s, Map<String, Object> map);
	    public abstract List listPesqParam(String s, Map<String, Object> map, int i, int j);
	    public abstract List listPesq(String s);
	    public abstract Object pesqParam(String s, Map<String, Object> map);

}
